﻿<UserControl x:Class="DeltaGroup.WheelOfJeopardy.UI.Screens.FinalJeopardyResult"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Commands="clr-namespace:DeltaGroup.WheelOfJeopardy.UI.Commands" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Background="{StaticResource ScreenBackgroundBrushKey}">
    <StackPanel  HorizontalAlignment="Center"  >
        <TextBlock Text="Final Jeopardy Result" Style="{StaticResource Title}"></TextBlock>
        <TextBlock Text="Correct Response" Style="{StaticResource Title}"/>
        <TextBlock Text="{Binding Path=FinalChallenge.ExpectedResponse}" Style="{StaticResource Title}"/>
        <ItemsControl ItemsSource="{Binding Path=FinalJeopardyResult}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{Binding Key}"  Style="{StaticResource Title}"></TextBlock>
                        <TextBlock Grid.Column="1" Text="{Binding Value}"  Style="{StaticResource Title}"></TextBlock>
                    </Grid>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>

        <Button Command="Commands:WoJCommands.GameOver" Content="Continue" Style="{StaticResource GameMenu}" />
        
    </StackPanel>
</UserControl>
